]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell-global: Mark the sync pointer motion event as synthetic
authorRui Matos <tiagomatos@gmail.com>
Mon, 27 Apr 2015 17:08:24 +0000 (19:08 +0200)
committerRui Matos <tiagomatos@gmail.com>
Mon, 27 Apr 2015 17:47:39 +0000 (19:47 +0200)
This allows mutter to ignore these events for the purpose of keeping
idle time.

https://bugzilla.gnome.org/show_bug.cgi?id=748541

src/shell-global.c

index acd5c80c8e67522f21b510a8c6f8fe69211e6459..188e8980553465763a4abafc8b42d20f0996c8a1 100644 (file)
@@ -1464,7 +1464,7 @@ shell_global_sync_pointer (ShellGlobal *global)
 
   event.type = CLUTTER_MOTION;
   event.time = shell_global_get_current_time (global);
-  event.flags = 0;
+  event.flags = CLUTTER_EVENT_FLAG_SYNTHETIC;
   event.stage = global->stage;
   event.x = x;
   event.y = y;